package PTA;

import java.util.Scanner;

public class t1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt(); //n是要判断的数
        int num = 1;    //num有几位数
        int key = 1;    //key用于计算
        int tmp = n;
        while(tmp > 10) {
            tmp /= 10;
            num++;
            key *= 10;
        }
        tmp = n;
        while(tmp > 10) {
            int a = tmp / key;
            int b = tmp % 10;
            if(a != b) {
                System.out.println(n + " 不是回文数");
                return;
            }
            tmp%=key;
            tmp/=10;
            key/=100;
        }
        System.out.println(n + " 是回文数");
    }
}
